package com.goodving.guli.server;


import com.goodving.guli.view.C3657a;

import java.util.HashMap;

/* renamed from: cn.com.smartdevices.bracelet.j.k */
public class C1328k {
    private static HashMap<String, String> f6810a = null;
    private static final String f6811b = "https://openmobile.qq.com/v3/health/";
    private static final String f6812c = "http://weatherapi.market.xiaomi.com/wtr-v2";
    private static final String f6813d = "&source=mihealth";
    private static final String f6814e = "https://openmobile.qq.com/v3/health/report_steps";
    private static final String f6815f = "https://openmobile.qq.com/v3/health/report_sleep";
    private static final String f6816g = "https://openmobile.qq.com/v3/health/report_weight";
    private static final String f6817h = "http://weatherapi.market.xiaomi.com/wtr-v2/city/positioning?longitude=%s&latitude=%s&source=mihealth";
    private static final String f6818i = "http://weatherapi.market.xiaomi.com/wtr-v2/city/datasource?cityNames=%s&longitude=%s&latitude=%s&phoneCode=%s&areaCode=%s&source=mihealth";
    private static final String f6819j = "http://weatherapi.market.xiaomi.com/wtr-v2/weather?cityId=%s&source=mihealth";

    static {
        f6810a = new HashMap();
        f6810a.put("URL_POST_STEPS", f6814e);
        f6810a.put("URL_POST_SLEEP", f6815f);
        f6810a.put("URL_POST_WEIGHT", f6816g);
        f6810a.put("URL_REQUEST_CITY", f6817h);
        f6810a.put("URL_REQUEST_CITY_CODE", f6818i);
        f6810a.put("URL_REQUEST_WEATHER", f6819j);
    }

    public static String m11581a(String str) {
        return (str == null || C3657a.f18328f.equals(str)) ? C3657a.f18328f : (String) f6810a.get(str);
    }

    public static boolean m11582b(String str) {
        return (str == null || C3657a.f18328f.equals(str)) ? false : str.indexOf(f6812c) == 0 || str.indexOf(f6811b) == 0;
    }
}
